#!/bin/bash
#
# Overlays two png-coded videos on a 'base' video.
#
# Usage:
# overlayGPSvids.bash base_vid overlay1 overlay2 outvid

# Overlay1 is positioned in upper-left corner, overlay2 in lower-left.
#ffmpeg -i $1 -vcodec png -i $2 -vcodec png -i $3 -filter_complex 'overlay=x=0:y=0,overlay=x=-5:y=H-h-0' $4

# Overlay1 is positioned in upper-right corner, overlay2 in lower-right.
ffmpeg -i $1 -vcodec png -i $2 -vcodec png -i $3 -filter_complex 'overlay=x=960:y=0,overlay=x=1100:y=H-h-0' $4
